﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace centraldba_dbrestore_utility
{
    public class msx_config_propertygrid
    {
        public msx_config_propertygrid()
        {
            Properties.Settings.Default.Reload();
        }


        [Category("Connection")]
        [DisplayName("Server Name")]
        [Description("The name of the SQL Server MSX database instance.  If you do not know this, ask your SQL Server database administrator.")]
        public string centraldba_server_name
        {
            get { return Properties.Settings.Default.centraldba_server_name; }
            set
            {
                Properties.Settings.Default.centraldba_server_name = value;
                Properties.Settings.Default.Save();
            }
        }

        [Category("Connection")]
        [DisplayName("Database Name")]
        [Description("The name of the MSX database.  If you do not know this, ask your SQL Server database administrator.")]
        public string centraldba_db_name
        {
            get { return Properties.Settings.Default.centraldba_db_name; }
            set
            {
                Properties.Settings.Default.centraldba_db_name = value;
                Properties.Settings.Default.Save();
            }
        }
    }
}
